# -*- coding: utf-8 -*-
# Author: xiantingDeng
# File: main.py
# Time: 15:05

from crm.run import Run

"""
run all case:
    python3 run.py

run one module case:
    python3 run.py test/test_demo.py

run case with key word:
    python3 run.py -k <keyword>
run class case:
    python3 run.py  test/test_demo.py::Test_demo
run class::method case:
    python3 run.py  test/test_demo.py::Test_demo::test_home
"""

if __name__ == '__main__':
    run = Run()

    # 获取命令行参数中的用例执行作用域
    run.exec()

    # 生成HTML（allure）测试报告
    run.genrate_report()
